<template>
  <button @click="handleLogout" :disabled="isLoading">
    {{ isLoading ? "退出中..." : "退出登录" }}
  </button>
</template>

<script lang="ts" setup>
import { useLogout } from "../composables/useLogout";

const { isLoading, logout } = useLogout();

const handleLogout = async () => {
  await logout();
};
</script>